Skip to content
This repository has been archived by the owner on Sep 1, 2020. It is now read-only.

Latest commit

 

History

History
9 lines (7 loc) · 199 Bytes

6.1.2 - swoole_lock->lock.md

File metadata and controls

9 lines (7 loc) · 199 Bytes

swoole_lock->lock

函数原型:

$lock->lock();

加锁操作。如果有其他进程持有锁,那这里将进入阻塞,直到持有锁的进程unlock。

  • 加锁成功返回true